package com.zjitc.service.imp;

import com.zjitc.dao.UserDao;
import com.zjitc.model.Country;
import com.zjitc.service.UserService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/20 16:15
 * @description:
 */
@Service
public class UserServiceImp implements UserService {

  @Autowired
  private UserDao dao;

  @Override
  public List<Country> findAll() {
    return dao.findAll();
  }

  @Override
  public void delete(String code) {
    dao.delete(code);
  }
  @Override
  public void insert(Country country) {
    dao.insert(country);
  }
  @Override
  public Country findCode(String code) {
    return dao.findCode(code);
  }

  @Override
  public List<Country> search(String condition) {
    return dao.search(condition);
  }

  @Override
  public int update(Country country) {
    return dao.update(country);
  }
}
